package org.example.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.util.Date;
@Data
@TableName("wrong_question")  // 假设表名为 wrong_records，实际表名可根据实际情况调整
public class WrongQuestionEntity {
    @TableId(type = IdType.AUTO)  // 自动增长的主键
    private Integer wrongId;  // 错题记录唯一标识

    private Integer studentId;  // 学生ID

    private Integer questionId;  // 题目ID

    private Integer examId;  // 考试ID

    private String questionType;  // 题目类型（单选/多选/判断等）

    private Date submitTime;  // 提交时间

    private String wrongReason;  // 错误原因或学生答错原因

    private Date createdAt;  // 创建时间

    private Date updatedAt;  // 更新时间

    // 带参数的构造方法
    public WrongQuestionEntity(Integer wrongId, Integer studentId, Integer questionId, Integer examId, String questionType,
                               Date submitTime, String wrongReason, Date createdAt, Date updatedAt) {
        this.wrongId = wrongId;
        this.studentId = studentId;
        this.questionId = questionId;
        this.examId = examId;
        this.questionType = questionType;
        this.submitTime = submitTime;
        this.wrongReason = wrongReason;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
    }
}
